
<?php
//echo CHtml::link($model->drugstores->price,array('aaaaaaaaa'));
$this->widget('application.components.Drugview', array(
    'title' => $model->name,
    'image' => $model->images,
    //'price' => $prices->price,
    'userAdd' => $model->userAdd->username,
    'dayAdd' =>$model->time_add,
    'description'=> $model->description,
    'userView' => $model->userview,
));
?>

<div id="comments">
    <?php if ($model->commentCount > 0): ?>
        <h3>
            <?php echo $model->commentCount > 1 ? $model->commentCount . ' comments' : 'One comment'; ?>
        </h3>
        <?php
        $this->renderPartial('_comments', array(
            'comments' => $model->comments,
        ));
        ?>
    <?php endif; ?>
</div>
<div class="box-products">
    <h3>Thêm comments</h3>
    <?php if (Yii::app()->user->hasFlash('commentSubmitted')): ?>
        <div class="flash-success">
            <?php echo Yii::app()->user->getFlash('commentSubmitted'); ?>
        </div>
    <?php else: ?>
        <?php
            $this->renderPartial('/comment/_form', array(
                'model' => $comment,
            ));
        ?>
    <?php
    endif;
    ?>
</div>